package com.office.file.collect.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.office.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.office.common.annotation.Excel;

/**
 * 用户收藏文件对象 file_favorite
 * 
 * @author ruoyi
 * @date 2025-07-14
 */
public class FileFavorite extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 文件ID */
    @Excel(name = "文件ID")
    private Long fileId;

    /** 收藏时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date favoriteTime;

    /** 收藏备注（可选） */
    @Excel(name = "收藏备注", readConverterExp = "可=选")
    private String note;

    /** 是否已删除（0:未删除, 1:已删除） */
    @Excel(name = "是否已删除", readConverterExp = "0=:未删除,,1=:已删除")
    private Integer isDeleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setFileId(Long fileId) 
    {
        this.fileId = fileId;
    }

    public Long getFileId() 
    {
        return fileId;
    }

    public void setFavoriteTime(Date favoriteTime) 
    {
        this.favoriteTime = favoriteTime;
    }

    public Date getFavoriteTime() 
    {
        return favoriteTime;
    }

    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }

    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("fileId", getFileId())
            .append("favoriteTime", getFavoriteTime())
            .append("note", getNote())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
